<?php

namespace Syrius\Query;


/**
 * Enter description here ...
 * @abstract
 * @package	Query
 * @author	Domenico Biancardi <domenico.biancardi@gmail.com>
 * @link	http://code.google.com/p/syrius/
 *
 */ abstract class View extends Table {
	public function __construct($source, $selectStatement) {
		$this->tbl_name = $source;
		$this->_selectStatement = $selectStatement;
	}

	protected $_selectStatement;

	public function __toString() {
		return "";
	}

}

class View_Alter extends View {
	public function __toString() {
		return "ALTER VIEW " . $this->tbl_name . " AS " . $this->_selectStatement;
	}

}

class View_Create extends View {
	public function __toString() {
		return "CREATE VIEW " . $this->tbl_name . " AS " . $this->_selectStatement;
	}

}

?>
